.class Lcom/waiqin365/lightapp/dailyreport/view/ac;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/waiqin365/lightapp/dailyreport/view/ab;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/view/ab;I)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    iput p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->a:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 10

    const/16 v8, 0x32

    const/4 v4, 0x3

    const/4 v2, 0x2

    const/4 v3, 0x1

    const/4 v7, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-eq v0, v4, :cond_4

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->a:I

    if-ne v0, v2, :cond_4

    const-string/jumbo v0, "101"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->b(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Lcom/waiqin365/lightapp/dailyreport/c/g;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "100"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->b(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Lcom/waiqin365/lightapp/dailyreport/c/g;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    :cond_0
    new-instance v2, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    const-class v1, Lcom/waiqin365/lightapp/dailyreport/DetailH5Activity;

    invoke-direct {v2, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "comment_id"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->b(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Lcom/waiqin365/lightapp/dailyreport/c/g;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/g;->a:Ljava/lang/String;

    invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "position"

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->a:I

    invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->b(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Lcom/waiqin365/lightapp/dailyreport/c/g;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/g;->i:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3, v0}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    const-string/jumbo v0, "<wqhref>"

    invoke-virtual {v3, v0}, Ljava/lang/StringBuffer;->indexOf(Ljava/lang/String;)I

    move-result v4

    const-string/jumbo v0, "</wqhref>"

    invoke-virtual {v3, v0}, Ljava/lang/StringBuffer;->indexOf(Ljava/lang/String;)I

    move-result v5

    const-string/jumbo v1, ""

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    const v6, 0x7f080252

    invoke-virtual {v0, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    if-ltz v4, :cond_2

    if-le v5, v4, :cond_2

    add-int/lit8 v0, v4, 0x8

    invoke-virtual {v3, v0, v5}, Ljava/lang/StringBuffer;->substring(II)Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v0, "##"

    invoke-virtual {v1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {v1, v7, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v3, "http://"

    invoke-virtual {v1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->d()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, "/"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_1
    const-string/jumbo v3, "##"

    invoke-virtual {v1, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    add-int/lit8 v3, v3, 0x2

    const-string/jumbo v4, "##"

    invoke-virtual {v1, v4}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v1, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    move-object v9, v1

    move-object v1, v0

    move-object v0, v9

    :cond_2
    const-string/jumbo v3, "title"

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "url"

    invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v2, v8}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V

    :cond_3
    :goto_0
    return-void

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-eq v0, v4, :cond_5

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->a:I

    if-ne v0, v2, :cond_5

    const-string/jumbo v0, "4"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->b(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Lcom/waiqin365/lightapp/dailyreport/c/g;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/c/g;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/ab;->d:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_5

    const-string/jumbo v0, "2"

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/view/ab;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_5

    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "isFromPush"

    invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "visitId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    iget-object v2, v2, Lcom/waiqin365/lightapp/dailyreport/view/ab;->b:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "editable"

    invoke-virtual {v1, v0, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "canViewCM"

    invoke-virtual {v1, v0, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "showComment"

    invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "comment_id"

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    iget-object v2, v2, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "position"

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->a:I

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v0, "canViewAll"

    invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0, v1, v8}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_5
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v2, "from"

    const-string/jumbo v3, "daily_main"

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->a:I

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "photolist"

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v3}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->a(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v2}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ac;->b:Lcom/waiqin365/lightapp/dailyreport/view/ab;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/ab;->c(Lcom/waiqin365/lightapp/dailyreport/view/ab;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const v1, 0x7f040027

    invoke-virtual {v0, v1, v7}, Landroid/app/Activity;->overridePendingTransition(II)V

    goto/16 :goto_0
.end method
